<?php

namespace app\controller\mobile;

use app\common\service\FileService;
use think\annotation\route\Group;
use think\annotation\route\Post;

#[Group('mobile/file')]
class FileController extends MobileAuthorizedController
{
    #[Post('image')]
    public function image()
    {
        return (new FileService(app()))->uploadImage('mobile');
    }

    #[Post('file')]
    public function file()
    {
        return (new FileService(app()))->uploadAttachment('mobile');
    }

}